package com.cosmoplat.xikai.business.domain.dto.alarm;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @ClassName AlarmQueryDTO
 * @Description 告警查询参数
 * @Author wdf
 * @Date 2025/1/7
 */
@Data
@ApiModel(value = "告警查询参数")
public class AlarmQueryDTO {

    /**
     * 告警代码
     */
    @ApiModelProperty(value = "告警代码", example = "ALM001")
    private String alarmCode;
    /**
     * 告警名称
     */
    @ApiModelProperty(value = "告警名称", example = "告警")
    private String alarmName;

    /**
     * 告警类型  1：质量异常告警，2：缺料告警，3：物料错误告警
     */
    @ApiModelProperty(value = "告警类型 (1: 质量异常告警, 2: 缺料告警, 3: 物料错误告警)", example = "1")
    private Integer alarmType;


    @ApiModelProperty(value = "开始时间", example = "2025-01-01 00:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty(value = "结束时间", example = "2025-01-01 00:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;
}
